package org.gr.ias.common.entity;

import java.io.Serializable;

public class ProjectFinancingExtWay implements Serializable {
    /** 主键*/
    private String id;

    /** 对应融资信息ID*/
    private String projectFinancingId;

    /** 方式代码*/
    private String wayCode;

    /** 版本号*/
    private Integer version;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getProjectFinancingId() {
        return projectFinancingId;
    }

    public void setProjectFinancingId(String projectFinancingId) {
        this.projectFinancingId = projectFinancingId == null ? null : projectFinancingId.trim();
    }

    public String getWayCode() {
        return wayCode;
    }

    public void setWayCode(String wayCode) {
        this.wayCode = wayCode == null ? null : wayCode.trim();
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProjectFinancingExtWay other = (ProjectFinancingExtWay) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getProjectFinancingId() == null ? other.getProjectFinancingId() == null : this.getProjectFinancingId().equals(other.getProjectFinancingId()))
            && (this.getWayCode() == null ? other.getWayCode() == null : this.getWayCode().equals(other.getWayCode()))
            && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProjectFinancingId() == null) ? 0 : getProjectFinancingId().hashCode());
        result = prime * result + ((getWayCode() == null) ? 0 : getWayCode().hashCode());
        result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", projectFinancingId=").append(projectFinancingId);
        sb.append(", wayCode=").append(wayCode);
        sb.append(", version=").append(version);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}